PATH
WebObjects 4.5 Documentation >
Tools and Techniques
Frameworks
A framework
is a collection of classes and resources that an application can use. By storing items such as components and images in frameworks, you can reuse them in multiple projects without having to create multiple copies.
Every WebObjects Application project includes several frameworks by default. When you build, your application links with these frameworks. They are:
-
WebObjects: The basic WebObjects classes.
-
WOExtensions: Extensions to the WebObjects framework.
-
EOAccess: The Enterprise Objects Access Layer.
-
EOControl: The Enterprise Objects Control Layer.
-
Foundation: Basic object classes that most applications use (for example, strings, numbers, and arrays).
You can include additional system frameworks in your project if you need to. To add an existing framework to your project:
-
Double-click Frameworks in the first column of the browser.
-
In the Add Frameworks panel that appears, select a framework to add and click Open.
In addition, you can create your own frameworks in order to share WebObjects components and resources across multiple applications. To create a WebObjects Framework:
-
Choose Project
New.
-
Select Webobjectsframework from the pop-up menu.
-
Select the path where you want to create the framework.
Once you have created a framework, you can add components, images, and other items to it in the same way that you would add them to a project. To make your framework accessible to other applications, you must install it (see
Installing Your Application
for more information). See
Reusable Components
for more information on using components that live in frameworks.
© 1999 Apple Computer, Inc. – (Last Updated July 27 99)